const Layout = () => import("@/layout/index.vue");
import Home2 from "@iconify-icons/ri/home-office-line";
import Home3 from "@iconify-icons/ri/home-8-line";

export default {
  path: "/flow",
  name: "Flow",
  component: Layout,
  redirect: "/flow/def",
  meta: {
    title: "流程管理",
    icon: Home2,
    auths: ["flow"]
  },
  children: [
    {
      path: "/flow/form",
      name: "FlowForm",
      component: Layout,
      redirect: "/flow/form/index",
      meta: {
        title: "流程表单",
        icon: Home3,
        auths: ["flowform"]
      },
      children: [
        {
          path: "/flow/form/index",
          name: "FlowFormManager",
          component: () => import("@/views/flow/form/index.vue"),
          meta: {
            title: "表单管理",
            auths: ["flowformmanager"]
          }
        },
        {
          path: "/flow/form/design",
          name: "FlowFormDesign",
          component: () => import("@/views/design/form/FormDesignerPanel.vue"),
          meta: {
            title: "表单快捷设计",
            auths: ["flowformdesign"]
          }
        }
      ]
    },
    {
      path: "/flow/def",
      name: "FlowDef",
      component: () => import("@/views/flow/def/index.vue"),
      meta: {
        title: "流程定义管理",
        auths: ["flowdef"]
      }
    },
    {
      path: "/flow/event/listener",
      name: "EventListener",
      component: () => import("@/views/flow/eventlistener/index.vue"),
      meta: {
        title: "流程事件处理器",
        auths: ["eventlistener"]
      }
    },
    {
      path: "/flow/auditor/function",
      name: "AuditorFunction",
      component: () => import("@/views/flow/auditorfunction/index.vue"),
      meta: {
        title: "动态办理人函数",
        auths: ["auditorfunction"]
      }
    },
    {
      path: "/flow/design",
      name: "FlowDesign",
      component: () =>
        import("@/views/design/process/ProcessDesignerPanel.vue"),
      meta: {
        title: "流程快捷设计",
        auths: ["flowdesign"]
      }
    },
    {
      path: "/flow/design/onekey",
      name: "FlowDesignOnekey",
      component: () => import("@/views/design/OneKeyDesigner.vue"),
      meta: {
        title: " 流程一键设计",
        auths: ["flowdesignonekey"]
      }
    }
  ]
} as RouteConfigsTable;
